Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

FAQ: Delete all Snapshots and Consolidate Snapshots Feature (1023657)

Last Updated: 3/20/2024Categories: InformationalTotal Views: 73394Language:
Chinese (Simplified)JapaneseEnglish

64 like this article

Subscribe to get an email
newsletter with new updates

64 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Purpose

This article provides information related to the VMware "snapshot deletion" process, both Delete all snapshots and Delete snapshot process. This article also describes the impact on the delta disks of the "Delete all snapshots" process also known as the "Consolidation process".

Resolution

Deleting Snapshots

Deleting a snapshot removes the snapshot from the Snapshot Manager. The VMware snapshot files are consolidated and written to the parent snapshot disk and merge with the virtual machine base disk.

Deleting a snapshot does not change the virtual machine or other snapshots. Deleting a snapshot consolidates the changes between snapshots and previous disk states and writes all the data from the delta disk that contains the information about the deleted snapshot to the parent disk. When you delete the base parent snapshot, all changes merge with the base virtual machine disk.

Delete

Use the Delete option to remove a single parent or child snapshot from the snapshot tree. Delete writes disk changes that occur between the state of the snapshot and the previous disk state to the parent snapshot.

Note: Deleting a single snapshot preserves the current state of the virtual machine and does not affect any other snapshot.

You can also use the Delete option to remove a corrupt snapshot and its files from an abandoned branch of the snapshot tree without merging them with the parent snapshot.

Delete All

Use the Delete All option to delete all snapshots from the Snapshot Manager. Delete all consolidates and writes the changes that occur between snapshots and the previous delta disk states to the base parent disk and merges them with the base virtual machine disk.

Delete all snapshots operation will commit every snapshot of the chain directly to the Base Disk(s) of the virtual machine. With this new algorithm:

If the Base Disk is preallocated (thick provision), no extra space is required for the Delete all operation. The Base Disk will not grow as it is preallocated or thick.

If the Base Disk is non-preallocated (thin provision), the base disk will grow only on committing information from the snapshots. Each thin provision disk may grow up to its maximum size as mentioned in the Provisioned Size option in the virtual machine settings for the disk.

Note: Time taken in Converting a Thin provisioned disk to a Thick provisioned disk depends on the size of the virtual machine disks, performance of the underlying storage device and also if the VM is running on snapshot, the snapshots would also go through a consolidation process.

You can check the Summary tab of the virtual machine to know how much the virtual machine disk utilization can grow. The difference between Provisioned Storage and Used Storage in the right panel indicate how much the Base Disks can grow.

However, if the virtual machine has disks in different datastores, this amount of storage space is shared between them.

What files get locked during the Delete all operation?

All flat and delta files that are used by the chain of snapshots are locked.

How to monitor the status of the Consolidation Process?

There is no way to accurately determine the progression of the commit process and the progression bar in the VMware vSphere Client may not report the accurate percentage and/or may appear to be stuck. As long as the files are being read /written and the time stamps on the files continue to update, the process is working.

For more information, see Commands to monitor Snapshot deletion in VMware ESX/ESXi (1007566).

How long is the consolidation going to take?

It is not easy to accurately determine how long the process will take. Many factors will directly and indirectly impact the time required to complete the process such as size/number of delta files, load/performances on the SAN, etc. However, you can use one of these techniques to estimate or get a worst case scenario of the time required.

If the process is already started, you may monitor the throughput through esxtop or looking at the vCenter Server performance charts. You can then estimate the time based on the aggregated size of the delta files.

Before you start the process, you may simulate a disk clone operation. This technique might not give you the most accurate estimation but it should provide a worst case scenario. If the delta files are numerous / large, it is the safest option as it does not require to start the process and no changes are made into the base disk. However, it requires the virtual machine to be shutdown.

For more details, see: Estimating the time required to consolidate snapshots for VMware ESX and VMware ESXi (2053758).

Can I change the type of the virtual disks when it has snapshots?

When you clone the virtual machine running on snapshot will result in creating a consolidated disk (only base disk) with no snapshot chain.

If you clone from Service Console, you can select any type of disk for the destination. However, you cannot clone from the Service console if the virtual machine is running.

If cloning snapshots to a new virtual disk, what If I clone a disk that uses a VMware Paravirtual controller?

If you cloned the virtual disk using the host CLI you might run in to issues. Running the vmkfstools -i command creates a cloned drive with an LSI controller, even if the source disk is using VMware Paravirtual. This results in the virtual machine failing to boot. To resolve this issue, change the controller type to the same as the source.

For related information, see:

Cloning and converting virtual machine disks with vmkfstools (1028042)

Configuring disks to use VMware Paravirtual SCSI (PVSCSI) adapters (1010398)

About VMware Paravirtual SCSI Controllers in the vSphere Documentation Center

What is the difference between running the process while the virtual machine is powered on and when it is powered off?

If the virtual machine is running when you click Delete all from the interface or run vmware-cmd <cfg> removesnapshots, an additional snapshot is created to accommodate the incoming I/O while all the other snapshots get committed to the Base Disk. The size of the snapshot can grow depending on the I/O activity. It is ideal to reduce the I/O activity to facilitate the process.

That last snapshot will commit to the base disk at the very end of the process. After this, all the snapshot files are deleted.

Note: If the virtual machine is powered off, no additional free space is required and the process will complete faster as there is no need track writes and the additional snapshot and delta file are not created as part of the process.
"If the Base Disk is non-preallocated (thin provision), the base disk will grow only on committing information from the snapshots. Each thin provision disk may grow up to its maximum size as defined in the Provisioned Size option in the virtual machine settings for the disk."

Will each snapshot file get deleted as soon as it gets committed to the base disk, releasing space on the datastore?

No. All files are deleted together for particular virtual disk after completing the process. Once all the snapshots are committed for one virtual disk, all the files for that virtual disk will be deleted at the same time. The consolidation process, however, may still continue to run for other virtual disks till the process gets completed for the second virtual disk and so on.

What is the performance impact?

The snapshot consolidation process will generate IOPS on the underlying storage array. If the process is started while the virtual machine is powered on and if the virtual machine requires intensive I/O, performance degradation may be noticed. This is because, additional read and writes are required to consolidate the delta disks to the base disk while the Guest OS continues its normal activity. If the application in use fits this description and is a critical production server, it would be advisable to start the process after-hours or during a period of low activity.

After the process is started, is it possible to stop it?

No. Once the process is started, it cannot be canceled or paused. The process has to complete before any further operations can be done on the virtual machine including power operations. Do not shut down the ESXi host during this process.

Related Information

This article discusses only the impact to the VMware snapshot delta disk files and does not discuss the other snapshot files such as the snapshot descriptor (.vmsd) and memory snapshots (.vmsn) files. For more information, see:

Configuring disks to use VMware Paravirtual SCSI (PVSCSI) controllers (1010398)

Overview of virtual machine snapshots in vSphere (1015180)

Snapshot removal stops a virtual machine for long time

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

Related Versions:

VMware vSphere ESXi 8.0.x

VMware vSphere ESXi 7.0.0

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

Take Our Survey

Support Assistant